package com.wft.singleton;

public class Test03StaticInner {
    private Test03StaticInner() {
    }

    public static Test03StaticInner getInstance() {
       return InnerClass.TEST_02_STATIC_INNER;
    }

    private static class InnerClass {
        private static final Test03StaticInner TEST_02_STATIC_INNER = new Test03StaticInner();
    }

    public static void main(String[] args) throws IllegalAccessException, InstantiationException {
        System.out.println(Test03StaticInner.getInstance());
        System.out.println(Test03StaticInner.getInstance());


        Test03StaticInner doubleCheck = Test03StaticInner.class.newInstance();
        System.out.println(doubleCheck);
    }
}
